/*
Coder: Dzlua
Email: 505544956@qq.com
Time : 2017/05/18
*/
#include <cmdline/cmdline.h>
#include "sock.h"
#include <iostream>
using namespace std;

#define SERVICE_PORT 8520

int main(int argc, char** argv)
{
    cout << "service booting..." << endl;
    Service srv;
    if (!srv.Init(SERVICE_PORT)) {
        cout << "booting failed." << endl;
        return -1;
    }

    cout << "service working..." << endl;
    srv.Listen();

    return 0;
}